package com.fss.cart.domain;

import java.util.Date;

public class MyItem {
    private Long cartItemId;
    private Long cartId;
    private Long productId;
    private Long quantity;
    private Long skuId;
    private Date addTime;

    // Getters and Setters

    public MyItem() {
    }

    public MyItem(Long cartItemId, Date addTime, Long skuId, Long quantity, Long productId, Long cartId) {
        this.cartItemId = cartItemId;
        this.addTime = addTime;
        this.skuId = skuId;
        this.quantity = quantity;
        this.productId = productId;
        this.cartId = cartId;
    }

    public Long getCartItemId() {
        return cartItemId;
    }

    public void setCartItemId(Long cartItemId) {
        this.cartItemId = cartItemId;
    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    // toString 方法，方便调试
    @Override
    public String toString() {
        return "CartProduct{" +
                "cartItemId=" + cartItemId +
                ", cartId=" + cartId +
                ", productId=" + productId +
                ", quantity=" + quantity +
                ", skuId=" + skuId +
                ", addTime=" + addTime +
                '}';
    }
}
